﻿{include file="header.tpl"}

<table class="default">
	<thead>
		<tr>
			<td width="10%">Entrada</td>
			<td width="10%" class="middle">Visible</td>
			<td width="10%">Comentarios</td>
			<td></td>
		</tr>
	</thead>
	<tbody>
		{if is_array($data)}
			{foreach $data as $row}
				<tr class="{cycle values='odd,even'}">
					<td>{$row.title}</td>
					<td class="middle"><img src="{$imagespath}{if $row.visible eq 1}check.png{else}cross.png{/if}" /></td>
					<td>{$row.totalComments} en total, {$row.blockedComments} bloqueados, {$row.newComments} nuevos | <a href="{$row.reviseCommentsUrl}">Revisar</a></td>
					<td class="right"><a href="{$row.editUrl}">Editar</a></td>
				</tr>
			{/foreach}
		{else}
			<tr class="odd">
				<td colspan="4">{$data}</td>
			</tr>
		{/if}
	</tbody>
</table>

{include file="footer.tpl"}
